<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>构造函数</title>
	</head>
	<body>
		<script type="text/javascript">
		function Parson(name,age,job,address){
			this.name = name;
			this.age = age;
			this.job = job;
			this.address = address;
			this.intro = function(){
				var aa  = "姓名：" + this.name + "\n 年龄：" + this.age 
				 + "\n 工作：" + this.job 
				 +"\n 住址：" + this.address;
				alert(aa); 
			}
		}
		var people = new Parson("郎晓明","38","中国内地男演员、歌手","中国北京海淀区");
		people.intro();
		
		</script>
	</body>
</html>
